/**
 * Created by bgy on 2016/12/5.
 * 我的订单
 */
import React from 'react';
import {Link} from 'react-router';
import $ from '../../sources/jquery-2.2.4';

import HeaderTitle from '../../components/common/HeaderTitle';

var Order = React.createClass({
  getInitState: function () {
    return {orderList:[]};
  },
  componentDidMount:function(){
    // var
  },
  setActiveMenu:function(event){
    let activeMenu = event.target;
    $(activeMenu).parent().children().removeClass('active');
    event.target.classList.add('active');
  },
  render() {
    return (
      <div className="main">
        <HeaderTitle title="我的订单"/>
        <div className="orderTabs">
          <div className="orderTab active" onClick={this.setActiveMenu}>采购单</div>
          <div className="orderTab" onClick={this.setActiveMenu}>到货单</div>
          <div className="orderTab" onClick={this.setActiveMenu}>退货单</div>
        </div>
        <div className="orderList">
          <div className="order">
            <div className="orderTime">
              <time>2016-12-5 16:46:26</time>
            </div>
          </div>
        </div>
      </div>
    )
  }
})
export default Order;
